package org.zjx.app.service;

import org.zjx.command.entity.Association;

import java.util.ArrayList;
import java.util.List;

public class AssociationService {

    public static List<Association> getAssociations(String petName) {
        List<Association> associations = new ArrayList<>();
        if (petName.equals("老虎")) {
            Association association = new Association();
            association.setShopId(1);
            association.setPage(10);
            association.setItemName(petName);
            associations.add(association);
            Association association2 = new Association();
            association2.setShopId(38);
            association2.setPage(10);
            association2.setItemName(petName);
            associations.add(association2);
            return associations;
        }
        return null;
    }
}
